.bs-drawer {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  //background-color: #fff;
  &.fixed-position {
    position: fixed;
  }

  /*&.slide-enter-active,
  &.slide-leave-active {
    transition: transform .3s, opacity .3s;

    .bs-drawer-content-wrapper {
      transition: transform .3s, opacity .3s;
    }
  }

  &.bs-drawer-left,
  &.bs-drawer-right {
    .bs-drawer-content-wrapper {
      top: 0;
      bottom: 0;
      width: 375px;
    }
  }

  &.bs-drawer-left {
    .bs-drawer-content-wrapper {
      left: 0;
      box-shadow: 0.25rem 0 0.875rem -0.375rem #00000014, 0.4375rem 0 1.5rem #0000000d, 0.625rem 0 2.75rem 0.875rem #00000008;
    }

    &.slide-enter-from,
    &.slide-leave-to {
      .bs-drawer-content-wrapper {
        opacity: 0;
        transform: translateX(-100%);
      }
    }

    &.slide-enter-to,
    &.slide-leave-from {
      .bs-drawer-content-wrapper {
        opacity: 1;
        transform: translateX(0);
      }
    }

  }

  &.bs-drawer-right {
    .bs-drawer-content-wrapper {
      right: 0;
      box-shadow: -0.25rem 0 0.875rem -0.375rem #00000014, -0.4375rem 0 1.5rem #0000000d, -0.625rem 0 2.75rem 0.875rem #00000008;
    }

    &.slide-enter-from,
    &.slide-leave-to {
      .bs-drawer-content-wrapper {
        opacity: 0;
        transform: translateX(100%);
      }
    }

    &.slide-enter-to,
    &.slide-leave-from {
      .bs-drawer-content-wrapper {
        opacity: 1;
        transform: translateX(0);
      }
    }

  }

  &.bs-drawer-top,
  &.bs-drawer-bottom {
    .bs-drawer-content-wrapper {
      left: 0;
      right: 0;
      height: 375px;
    }
  }

  &.bs-drawer-top {
    .bs-drawer-content-wrapper {
      top: 0;
      box-shadow: 0 0.25rem 0.875rem -0.375rem #00000014, 0 0.4375rem 1.5rem #0000000d, 0 0.625rem 2.75rem 0.875rem #00000008;
    }

    &.slide-enter-from,
    &.slide-leave-to {
      .bs-drawer-content-wrapper {
        opacity: 0;
        transform: translateY(-100%);
      }
    }

    &.slide-enter-to,
    &.slide-leave-from {
      .bs-drawer-content-wrapper {
        opacity: 1;
        transform: translateY(0);
      }
    }

  }

  &.bs-drawer-bottom {
    .bs-drawer-content-wrapper {
      bottom: 0;
      box-shadow: 0 -0.25rem 0.875rem -0.375rem #00000014, 0 -0.4375rem 1.5rem #0000000d, 0 -0.625rem 2.75rem 0.875rem #00000008;
    }

    &.slide-enter-from,
    &.slide-leave-to {
      .bs-drawer-content-wrapper {
        opacity: 0;
        transform: translateY(100%);
      }
    }

    &.slide-enter-to,
    &.slide-leave-from {
      .bs-drawer-content-wrapper {
        opacity: 1;
        transform: translateY(0);
      }
    }

  }*/

  .close {
    display: block;
    padding: 1rem;
    margin: -1rem -1rem -1rem auto;

    &:focus {
      box-shadow: none;
    }
  }
}

.bs-drawer-content-wrapper {
  position: absolute;
  width: 22rem; // 320px
  background-color: #fff;
  /*&.fixed-position{
    position: fixed;
  }*/
  &.slide-enter-active,
  &.slide-leave-active {
    transition: transform .3s, opacity .3s;
  }

  &.bs-drawer-left,
  &.bs-drawer-right {
    top: 0;
    bottom: 0;
  }

  &.bs-drawer-left {
    left: 0;
    box-shadow: 0.25rem 0 0.875rem -0.375rem #00000014, 0.4375rem 0 1.5rem #0000000d, 0.625rem 0 2.75rem 0.875rem #00000008;
    &.slide-enter-from,
    &.slide-leave-to {
      opacity: 0;
      transform: translateX(-100%);
    }
    &.slide-enter-to,
    &.slide-leave-from {
      opacity: 1;
      transform: translateX(0);
    }
  }

  &.bs-drawer-right {
    right: 0;
    box-shadow: -0.25rem 0 0.875rem -0.375rem #00000014, -0.4375rem 0 1.5rem #0000000d, -0.625rem 0 2.75rem 0.875rem #00000008;
    &.slide-enter-from,
    &.slide-leave-to {
      opacity: 0;
      transform: translateX(100%);
    }
    &.slide-enter-to,
    &.slide-leave-from {
      opacity: 1;
      transform: translateX(0);
    }
  }

  &.bs-drawer-top,
  &.bs-drawer-bottom {
    left: 0;
    right: 0;
    width: 100%;
    height: 22rem; // 320px
  }

  &.bs-drawer-top {
    top: 0;
    box-shadow: 0 0.25rem 0.875rem -0.375rem #00000014, 0 0.4375rem 1.5rem #0000000d, 0 0.625rem 2.75rem 0.875rem #00000008;
    &.slide-enter-from,
    &.slide-leave-to {
      opacity: 0;
      transform: translateY(-100%);
    }
    &.slide-enter-to,
    &.slide-leave-from {
      opacity: 1;
      transform: translateY(0);
    }
  }

  &.bs-drawer-bottom {
    bottom: 0;
    box-shadow: 0 -0.25rem 0.875rem -0.375rem #00000014, 0 -0.4375rem 1.5rem #0000000d, 0 -0.625rem 2.75rem 0.875rem #00000008;
    &.slide-enter-from,
    &.slide-leave-to {
      opacity: 0;
      transform: translateY(100%);
    }
    &.slide-enter-to,
    &.slide-leave-from {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

.bs-drawer-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bs-drawer-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

.bs-drawer-title {
  margin-bottom: 0;
}

.bs-drawer-body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.bs-drawer-footer {
  padding: 0.625rem 1rem;
  border-top: 1px solid #eee;
}
